<%@ include file="/common/taglibs.jsp"%>
<probiz:pageHeading pageHeadingKey="subscriberList.heading" />

<content tag="buttons">
	<probiz:iconBtn btnType="delete" onclick="return fnDoMultiDelete(this);" />
</content>

<search:searchBox formAction="${ctxPath}/customer/subscriber.html">
	<div class="basic_search">
		<search:basicSearch attrPath="s.email" attrNameKey="appUser.email" datatype="String" operator="LIKE" classes="inputtxt" labelWidth="90px"/>
	</div>
	<div class="more_search">
		<table border="0" cellspacing="0" cellpadding="0" class="search_table">
			<search:input attrPath="s.newsletterGroup.name" attrNameKey="newsletterGroup.name" datatype="String" operator="LIKE" classes="inputtxt" style="width:150px" labelWidth="90px"/>
		</table>
	</div>
</search:searchBox>

<form class="mainForm" name="subscriberListForm" method="post">
	<div class="top clearfix">
		<ul class="tab">
			<li class="curr"><span><fmt:message key="menu.subscriberList"/></span></li>
		</ul>
		<%@include file="/common/pagingOnlyTop.jsp"%>
	</div>
	<div class="data">
		<c:set var="checkAll"><input type="checkbox" name="allbox" onclick="checkAll(this.form)" style="margin: 0 0 0 0px" /></c:set>
		<display:table name="${subscriberList}" cellspacing="0" cellpadding="0" uid="subscriberItem" class="list_table" export="false" requestURI="">
			<display:column class="checkbox_column" title="${checkAll}" media="html">
				<input type="checkbox" name="multiIds" value="${subscriberItem.subscriberId}"	class="checkbox" title="${subscriberItem.email}-${subscriberItem.newsletterGroup.name}"/>
			</display:column>
		    <display:column property="email" sortable="true" headerClass="data-table-title"
        		decorator="com.probiz.estore.core.decorator.TblColumnDecorator" titleKey="appUser.email"/>
        		
		    <display:column style="width:30%"  property="newsletterGroup.name" sortable="true" headerClass="data-table-title"
        		decorator="com.probiz.estore.core.decorator.TblColumnDecorator" titleKey="newsletterGroup.name"/>
        		
		</display:table>
		<%@include file="/common/pagingOnly.jsp"%>
	</div>
</form>
<script type="text/javascript">
$j(document).ready(function () {
	highlightTableRows("subscriberItem");
});	
</script>